package thread;

public class Demo5 {
    public static void main(String[] args) {
        Thread t=new Thread(()->{
            System.out.println("设置后台线程");
        });
        //t成--后台线程与进程终止无关`
        t.setDaemon(true);
        t.start();
    }


}
